//使用默认主题色
@import "@assets/css/colors.less";

html,
body {
    font-family: "Helvetica Neue", Helvetica, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "微软雅黑", Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    background: #f6f6f6;
    min-width: 1200px;
    height: 100%;
    font-size: 14px;
    color: #333;
}

#app {
    height: 100%;
}

.el-textarea textarea,
.input-tips code {
    font-family: "Helvetica Neue", Helvetica, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "微软雅黑", Arial, sans-serif;
}

* {
    padding: 0;
    margin: 0;
}

ul,
ol,
li {
    list-style: none;
}

em {
    font-style: normal;
}

a {
    text-decoration: none;
    color: #333;
}

img {
    width: 100%;
    height: auto;
    max-width: 100%;
    object-fit: cover;
}

div,
nav {
    box-sizing: border-box;
}

.pd-safe-bottom {
    padding-bottom: constant(safe-area-inset-bottom);
    padding-bottom: env(safe-area-inset-bottom);
}

.mb-safe-area {
    margin-bottom: constant(safe-area-inset-bottom);
    margin-bottom: env(safe-area-inset-bottom);
}

.flexs {
    display: flex;
    flex-flow: row nowrap;
    justify-content: space-between;
    align-items: center;
}

.flexs-center {
    display: flex;
    justify-content: center;
    align-items: center;
}

.line-one {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.line-two {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
}

.el-pagination {
    justify-content: center;
}

// 风格
.style-ui {
    #left-aside {
        width: 100px !important;

        .second-nav {
            transform: translate(-100%);
        }
    }

    #app-main {
        margin-left: 90px;
    }
}

.white-content {
    background: @white;
    padding: @padding-md;
    position: relative;
}

.el-backtop {
    z-index: 111;
}

//按钮
.theme-btn {
    height: 30px;
}

.white-box {
    margin-bottom: @margin-mdl;
    border-radius: @radius-xs;
    padding: @padding-mdl;
    background: @white;

    &:last-child {
        margin-bottom: 0;
    }
}

.col-span__center {
    text-align: center;
    font-size: @font-size-lg;
}

// main页面第一块内容
.sd-one {
    width: 100%;
    padding: @padding-xl @padding-lg @padding-md;
}

.si-one {
    display: flex;
    align-items: flex-start;
    margin-bottom: @margin-mdl;

    p {
        flex: none;
        width: 110px;
        text-align: right;
        line-height: 36px;
        margin-right: @margin-md;
    }

    .el-input {
        width: 300px;
        flex: none;
        margin-right: @margin-mdl;
    }

    .el-input__inner,
    .el-date-editor.el-input,
    .el-date-editor.el-input__wrapper {
        line-height: 36px;
        height: 36px;
    }
}

.table-mb {
    margin-bottom: @margin-lg;
}

.el-dialog .el-dialog__body {
    padding-top: 14px !important;
}

// 搜索框-背景
.task-one {
    margin: 0px 0px 20px;
    padding: 20px 16px;
    background: #f7f8fa;
    display: flex;
    justify-content: flex-start;
    flex-flow: row wrap;

    .task-one__item {
        flex: none;
        display: flex;
        align-items: center;
        margin-bottom: @margin-sm;
    }

    .el-input {
        width: 240px;
        flex: none;
        margin-right: @margin-mdl;
    }

    .el-date-editor {
        flex: none;
        margin-right: @margin-mdl;
    }
}

// 详情通用样式
.xq-h3 {
    text-align: center;
    padding: @padding-mdl;
    font-size: 22px;
    color: #121212;
    font-weight: 500;
    line-height: 40px;
}

.xq-time {
    font-size: 12px;
    color: #999;
    margin-bottom: 30px;
    text-align: center;
}

.xq-content {
    font-size: 14px;
    line-height: 24px;
    min-height: 300px;
    color: #333;

    p {
        margin-bottom: 5px;

        img {
            width: 100%;
            object-fit: cover;
        }
    }
}

// 详情页列表样式
.right-list {
    margin-bottom: 24px;

    .right-item {
        border-bottom: 1px solid #f6f6f6;
        padding: 10px 0px 10px 14px;
        overflow: hidden;

        &:hover {
            background: #f8f8f8;
        }

        .right-item__title {
            font-size: 16px;
            color: #323233;
            line-height: 30px;

            &:hover {
                cursor: pointer;
                color: #111;
            }
        }

        .right-item__desc {
            color: #999;
            font-size: 12px;
            line-height: 30px;
        }

        .right-item__view {
            width: 76px;
            text-align: left;

            i {
                margin-right: 4px;
            }
        }
    }
}

.help-right__title {
    font-size: 14px;
    color: #323233;
    margin-bottom: 10px;
}

// 详情类目标题，样式： | 标题
.help-header {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    margin-bottom: 16px;
    padding: 10px 0px;
    min-height: 40px;

    // background-color: #f7f8fa;
    &::before {
        background-color: #155bd4;
        content: "";
        width: 3px;
        height: 14px;
        margin-right: 8px;
    }

    span {
        font-size: 14px;
        line-height: 20px;
        color: #323233;
        font-weight: 500;
    }
}

// 左窄右宽布局
.help-main {
    display: flex;

    .help-left {
        flex: none;
        padding-right: @padding-md;
        width: 280px;
    }

    .help-right {
        flex: 1;
    }
}

// 左宽右窄布局
.nd-main {
    display: flex;

    .nd-left {
        flex: 1;
        padding-right: @padding-md;
    }

    .nd-right {
        flex: none;
        width: 280px;
    }
}

// 上传图片-查看大图样式
.fh-box {
    height: 600px;
    overflow-y: auto;
    overflow-x: hidden;

    .fh-img {
        max-width: 100%;
        margin-bottom: 10px;
        border-radius: @radius-xs;
        clear: both;
        float: left;
    }

    &::-webkit-scrollbar {
        /*滚动条整体样式*/
        width: 6px;
        /*高宽分别对应横竖滚动条的尺寸*/
        height: 1px;
    }

    &::-webkit-scrollbar-thumb {
        /*滚动条里面小方块*/
        border-radius: 10px;
        background: #b1b3b8;
    }

    &::-webkit-scrollbar-track {
        /*滚动条里面轨道*/
        box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.2);
        border-radius: 10px;
        background: #fff;
    }
}

// 操作按钮
.operation-nav {
    .el-button {
        margin-right: @margin-sm;

        &+.el-button {
            margin-left: 0;
        }
    }
}

// 表单
.el-form {
    .el-form-item__label {
        line-height: 36px;
    }

    .el-form-item__content {
        line-height: 36px;

        .el-input {
            width: 320px;
        }
    }

    .el-input__inner,
    .el-date-editor.el-input,
    .el-date-editor.el-input__wrapper {
        line-height: 36px;
        height: 36px;
    }
}

.submit-foot {
    margin-top: @margin-lg
}

// 表格复选框样式
.el-table {
    .el-table-column--selection {
        .cell {
            display: flex !important;
        }
    }

    .el-checkbox__inner {
        width: 18px;
        height: 18px;

        &::after {
            width: 4px;
            height: 9px;
            left: 6px;
            top: 1px;
        }
    }
}

// 上传图片-查看大图样式
.fh-box {
    height: 600px;
    overflow-y: auto;
    overflow-x: hidden;

    .fh-img {
        max-width: 100%;
        margin-bottom: 10px;
        border-radius: @radius-xs;
        clear: both;
        float: left;
    }

    &::-webkit-scrollbar {
        /*滚动条整体样式*/
        width: 6px;
        /*高宽分别对应横竖滚动条的尺寸*/
        height: 1px;
    }

    &::-webkit-scrollbar-thumb {
        /*滚动条里面小方块*/
        border-radius: 10px;
        background: #b1b3b8;
    }

    &::-webkit-scrollbar-track {
        /*滚动条里面轨道*/
        box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.2);
        border-radius: 10px;
        background: #fff;
    }
}

// 固定底部
.foot-btn {
    position: fixed;
    height: 64px;
    z-index: 111;
    left: 242px;
    right: 12px;
    bottom: 0px;
    box-shadow: rgb(240 240 240) 1px -2px 8px;
    background: #fff;
}

// 图片样式及引用图片库显示的样式
.img-box {
    background-color: #fafafa;
    width: 100px;
    height: 100px;
    border-radius: 6px;
    border: 1px solid #ededed;

    &:hover {
        cursor: pointer;
    }
}

.img-list {
    flex: 1;
    display: flex;
    flex-flow: row wrap;
}

.img-selects {
    width: 100px;
    height: 100px;
    position: relative;
    margin-right: @margin-sm;
    flex: none;

    .img-selects__pic {
        width: 100px;
        height: 100px;
        border-radius: 6px;
        cursor: pointer;
        overflow: hidden;
        position: relative;
    }

    .img-del {
        position: absolute;
        top: -6px;
        right: -6px;
        z-index: 11;
        width: 22px;
        height: 22px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 50%;
        overflow: hidden;
        background-color: @themes;
        cursor: pointer;
    }
}